import Home from "@/pages/Home"
import Data from "@/pages/Data"
import User from "@/pages/User"
import Login from "@/pages/Login"
import Detail from "@/pages/Detail"
import UserInfo from "@/pages/UserInfo"
import Account from "@/pages/Account"
import About from "@/pages/About"

const router = [
  {
    path: "/",
    element: <Home />,
    auth: true,
  },
  {
    path: "/data",
    element: <Data />,
    auth: true,
  },
  {
    path: "/user",
    element: <User />,
    auth: true,
  },
  {
    path: "/login",
    element: <Login />,
    auth: false,
  },
  {
    path: "/detail",
    element: <Detail />,
    auth: true,
  },
  {
    path: "/userinfo",
    element: <UserInfo />,
    auth: true,
  },
  {
    path: "/account",
    element: <Account />,
    auth: true,
  },
  {
    path: "/about",
    element: <About />,
    auth: true,
  },
]

export default router
